package org.jeecg.modules.wms.entity;

import java.io.Serializable;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.jeecg.common.aspect.annotation.Dict;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * @Description: 出库单主表
 * @Author: jeecg-boot
 * @Date: 2023-07-01
 * @Version: V1.0
 */
@Data
@TableName("wms_outbound")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="wms_outbound对象", description="出库单主表")
public class WmsOutbound implements Serializable {
    private static final long serialVersionUID = 1L;

    /**主键*/
    @TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "主键")
    private String id;
    
    /**出库单号*/
    @Excel(name = "出库单号", width = 15)
    @ApiModelProperty(value = "出库单号")
    private String outboundNo;
    
    /**出库类型：1-销售出库，2-生产领料，3-调拨出库，4-其他出库*/
    @Excel(name = "出库类型", width = 15, dicCode = "wms_outbound_type")
    @Dict(dicCode = "wms_outbound_type")
    @ApiModelProperty(value = "出库类型")
    private String outboundType;
    
    /**计划出库日期*/
    @Excel(name = "计划出库日期", width = 15, format = "yyyy-MM-dd")
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @ApiModelProperty(value = "计划出库日期")
    private Date outboundDate;

    /**实际出库日期*/
    @Excel(name = "实际出库日期", width = 15, format = "yyyy-MM-dd")
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @ApiModelProperty(value = "实际出库日期")
    private Date actualOutboundDate;
    
    /**状态：0-草稿，1-待审核，2-已审核，3-已出库，4-已取消,5部分出库*/
    @Excel(name = "状态", width = 15, dicCode = "wms_outbound_status")
    @ApiModelProperty(value = "状态")
    private String status;
    
    /**仓库ID*/
    @ApiModelProperty(value = "仓库ID")
    private String warehouseId;
    
    /**关联订单ID*/
    @ApiModelProperty(value = "关联订单ID")
    private String orderId;
    
    /**关联订单号*/
    @Excel(name = "关联订单号", width = 15)
    @ApiModelProperty(value = "关联订单号")
    private String orderNo;
    
    /**关联领料单ID*/
    @ApiModelProperty(value = "关联单ID")
    private String requisitionId;
    
    /**关联领料单号*/
    @Excel(name = "关联领料单号", width = 15)
    @ApiModelProperty(value = "关联单号")
    private String requisitionNo;

    /**出库凭证*/
    @ApiModelProperty(value = "出库凭证")
    private String outboundVoucher;
    
    /**备注*/
    @Excel(name = "备注", width = 15)
    @ApiModelProperty(value = "备注")
    private String remark;
    
    /**创建人*/
    @ApiModelProperty(value = "创建人")
    private String createBy;
    
    /**创建时间*/
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建时间")
    private Date createTime;
    
    /**更新人*/
    @ApiModelProperty(value = "更新人")
    private String updateBy;
    
    /**更新时间*/
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "更新时间")
    private Date updateTime;
    
    /**租户ID*/
    @ApiModelProperty(value = "租户ID")
    private String tenantId;

    /**
     * 查询条件  开始日期
     */
    @TableField(exist = false)
    @ApiModelProperty(value = "查询条件  开始日期")
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    private Date beginDate;

    /**
     * 查询条件  结束日期
     */
    @TableField(exist = false)
    @ApiModelProperty(value = "查询条件  结束日期")
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    private Date endDate;

    /**
     * 操作人ID集合
     */
    @ApiModelProperty(value = "操作人ID集合")
    private String operatorIds;

    @ApiModelProperty(value = "操作人名称集合")
    @Excel(name = "操作人", width = 15)
    private String operatorNames;
} 